#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>

int g_val=100;
int main()
{
     pid_t id=fork();
     if(id==0)
     {
       g_val=200;
       printf("child[%d]:%d,%p\n",getpid(),g_val,&g_val);

     }
     else 
     {
       printf("parent[%d]:%d,%p\n",getpid(),g_val,&g_val);
     }
     printf("hello,world\n");
     return 0;
}
